const app = getApp()

module.exports = Behavior({
  methods: {
    _mtOnGetUserInfo(e) {
      let detail = e.detail
      if (detail.errMsg && detail.errMsg.indexOf('fail') > -1) {
        this.mtGetUserInfoFail && this.mtGetUserInfoFail(e)
      } else {
        this.mtGetUserInfoSuccess && this.mtGetUserInfoSuccess(e)
      }
    },
  }
})
